// 产品型号增删改查
import { baseRequest } from '@/utils/request'
const request = (url, ...arg) => {
    return baseRequest(url, ...arg)
}
export default {
    // 增
    addProductModel(data) {
        return request('/AddProductModel', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 删
    deleteProductModel(data) {
        return request('/DeleteProductModel', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 查
    getProductModels(data) {
        return request('/GetProductModels', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改型号基本信息
    modifyProductModelBaseInfo(data) {
        return request('/ModifyProductModelBaseInfo', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改产品型号人工检测参数
    modifyProductModelTestCfg(data) {
        return request('/ModifyProductModelTestCfg', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改产品型号自动检测参数
    modifyProductModelAutoTestCfg(data) {
        return request('/ModifyProductModelAutoTestCfg', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改产品型号打包验证功能
    modifyProductModelIsCheckOfPackage(data) {
        return request('/ModifyProductModelIsCheckOfPackage', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改产品型号老化时长
    modifyProductModelAgeTimeLen(data) {
        return request('/ModifyProductModelAgeTimeLen', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },
    // 修改产品型号每托盘产品数量
    modifyProductModelNumPerTuoPan(data) {
        return request('/ModifyProductModelNumPerTuoPan', {
            UUID: localStorage.getItem('UUID') ? localStorage.getItem('UUID') : '',
            ...data
        }, 'post')
    },

}